home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util1 / yk211src.lha / Yak_2.11_Src / Prefs / Include / Root_window.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  4KB  |  116 lines

  1.  
  2. #ifndef ROOT_H
  3.  
  4. #define ROOT_H
  5.  
  6. #ifndef INTUITION_INTUITION_H
  7. #include <intuition/intuition.h>
  8. #endif
  9. #ifndef LIBRARIES_GADTOOLS_H
  10. #include <libraries/gadtools.h>
  11. #endif
  12.  
  13. #define GDX_AutoCheck                          0
  14. #define GDX_KeyActCheck                        1
  15. #define GDX_ScrActCheck                        2
  16. #define GDX_AutoPopCheck                       3
  17. #define GDX_RMBActCheck                        4
  18. #define GDX_MMBActCheck                        5
  19. #define GDX_AutoPat                            6
  20. #define GDX_PopPat                             7
  21. #define GDX_EditHotkeys                        8
  22. #define GDX_Miscellaneous                      9
  23. #define GDX_Blanking                           10
  24. #define GDX_Save                               11
  25. #define GDX_Cancel0                            12
  26. #define GDX_Use                                13
  27. #define GDX_MouseCycling                       14
  28. #define GDX_AutoPointDelay                     15
  29.  
  30. /* Number of gadgets of root window */
  31.  
  32. #define Root_CNT          16
  33.  
  34. #define  MDX_PROJECT     0
  35. #define  MDX_OPEN        1
  36. #define  MDX_SAVE        2
  37. #define  MDX_SAVEAS      3
  38. #define  MDX_ABOUT       5
  39. #define  MDX_HIDE        7
  40. #define  MDX_QUIT        8
  41. #define  MDX_EDIT        9
  42. #define  MDX_DEFAULT     10
  43. #define  MDX_LASTSAVED   11
  44. #define  MDX_ACTIVE      12
  45. #define  MDX_OPTIONS     13
  46. #define  MDX_CREATEICONS 14
  47.  
  48.  
  49. /* Global variables */
  50.  
  51. #ifdef GADTOOLS
  52. GLOBAL struct Window       *RootWnd;
  53. GLOBAL struct Gadget       *RootGList;
  54. GLOBAL struct Menu         *RootMenus;
  55. GLOBAL struct Gadget       *RootGadgets[];
  56. GLOBAL UWORD                RootWidth;
  57. GLOBAL UWORD                RootHeight;
  58. GLOBAL UBYTE               *RootWdt;
  59. GLOBAL struct IntuiText     RootIText[];
  60. GLOBAL struct NewMenu       RootNewMenu[];
  61. GLOBAL struct NewGadget     RootNGad[];
  62. GLOBAL ULONG                RootGTags[];
  63. #endif
  64.  
  65.  
  66. /* Exported functions */
  67.  
  68. GLOBAL VOID InitRootITexts       (VOID);
  69. GLOBAL VOID RootRender           (VOID);
  70. GLOBAL int  OpenRootWindow       (VOID);
  71. GLOBAL VOID CloseRootWindow      (VOID);
  72. GLOBAL BOOL ShowRootWindow       (VOID);
  73. GLOBAL LONG HandleRootIDCMP      (VOID);
  74. GLOBAL BOOL SwitchFromRootWindow (UBYTE WindowID);
  75.  
  76. #ifdef MUI
  77. GLOBAL APTR   RootWnd;
  78. GLOBAL APTR   RootObjects[];
  79. GLOBAL UBYTE *RootWdt;
  80. #endif
  81.  
  82. #ifdef BGUI                     /* NMC */
  83. GLOBAL struct Window  *RootWnd;
  84. GLOBAL Object         *RootObjects[];
  85. GLOBAL UBYTE          *RootWdt;
  86. GLOBAL struct NewMenu  RootNewMenu[];
  87. #endif
  88.  
  89. #if defined(MUI) || defined(BGUI)               /* NMC */
  90. #define    CH_KeyActivate       RootObjects[GDX_KeyActCheck]
  91. #define    CH_MMBActivate       RootObjects[GDX_MMBActCheck]
  92. #define    CH_RMBActivate       RootObjects[GDX_RMBActCheck]
  93. #define    CH_AutoPoint         RootObjects[GDX_AutoCheck]
  94. #define    STR_AutoScreen       RootObjects[GDX_AutoPat]
  95. #define    SL_AutoPointDelay    RootObjects[GDX_AutoPointDelay]
  96. #define    CH_ScreensActivation RootObjects[GDX_ScrActCheck]
  97. #define    CH_AutoPopToFront    RootObjects[GDX_AutoPopCheck]
  98. #define    STR_PopWindows       RootObjects[GDX_PopPat]
  99. #define    BT_MouseCycling      RootObjects[GDX_MouseCycling]
  100. #define    BT_Blanking          RootObjects[GDX_Blanking]
  101. #define    BT_EditHotkeys       RootObjects[GDX_EditHotkeys]
  102. #define    BT_Miscellaneous     RootObjects[GDX_Miscellaneous]
  103. #define    BT_Save              RootObjects[GDX_Save]
  104. #define    BT_Use               RootObjects[GDX_Use]
  105. #define    BT_Cancel            RootObjects[GDX_Cancel0]
  106.  
  107. GLOBAL APTR CreateRootWindow   (VOID);
  108. GLOBAL BOOL ShowRootWindow     (VOID);
  109. GLOBAL VOID CloseRootWindow    (VOID);
  110. GLOBAL LONG HandleRootReturnID (LONG id);
  111.  
  112. #endif /* MUI or BGUI */
  113.  
  114. #endif /* ROOT_H */
  115.  
  116.